import type { UploadImage } from "@/types/upload"
import { request } from "@/utils/http"

export const uploadImageApi = (filePath: string) => {
  return request.upload<null, UploadImage>("/upload", {
    name: "file",
    filePath: filePath,
  })
}
